package com.example.demo.exception.base;

/**
 * 抽象公共运行时异常类
 * @author hankChan
 *         2018/1/3 0003.
 */
public abstract class AbstractException extends RuntimeException {

    private static final long serialVersionUID = 245693640004162250L;

    protected String requestId;
    protected String code;
    protected String msg;

    public AbstractException(String requestId, String msg) {
        this.requestId = requestId;
        this.msg = msg;
    }

    public AbstractException(String requestId, String code, String msg) {
        this.requestId = requestId;
        this.code = code;
        this.msg = msg;
    }
}
